﻿using System;
using Colorful.Furniture.Extensions;

namespace Colorful.Furniture.BasicDataManagement
{
    /// <summary>
    /// 列表输出体
    /// </summary>
    public class AreaPagedOutputDto : AreaBaseOutputDto
    {
        /// <summary>
        ///  创建时间
        /// </summary>
        public DateTime AddTime { get; set; }

        /// <summary>
        ///  创建时间
        /// </summary>
        public string AddTimeFormat => AddTime.ToDateString();

    }

    /// <summary>
    /// 详细信息输出体
    /// </summary>
    public class AreaDetailOutputDto : AreaBaseOutputDto
    {

        public bool IsDeleted { get; set; }
        public DateTime? DeletedTime { get; set; }
        public Guid? ModifyUserId { get; set; }
        public DateTime? ModifyTime { get; set; }
    }

    /// <summary>
    /// 基础输出体
    /// </summary>
    public class AreaBaseOutputDto
    {

        /// <summary>
        /// 编码
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 区域名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        ///  备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 状态（0：禁用；1：启用）
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 仓库
        /// </summary>
        public string WarehouseName { get; set; }

    }
}
